Dimensional Modeling

Dimensional modeling organizes data around the business events you want to measure and the descriptive context that explains those events. It is useful when you design models for reporting and analysis because it separates measures from the dimensions used to interpret them.

In Quest Data Modeler, enable dimensional modeling in the Model Properties Editor to assign fact, dimension, and outrigger roles to tables.

In addition to helping business and technical users understand and analyze data, a dimensional model can help:

  • Track data sources

  • Understand table relationships without reviewing every column

  • Make data definitions and relationships easier to review

Fact, Dimension, and Outrigger Roles

The Dimensional Notation Role Type list in the Dimensional Properties section provides three roles: Fact, Dimension, and Outrigger. A table's role describes how it participates in the dimensional model.

The following retail sales example shows how a dimensional model uses fact, dimension, and outrigger tables.

Fact

A fact table records business events and their measures. In this example, each SALES row represents one product line within a sales transaction. QUANTITY_SOLD records the quantity sold, and NET_SALES_AMOUNT records the revenue after discounts for that line. Each line relates to the customer, product, store, and time dimensions.

Use the Fact role when you need to analyze measures such as sales amount by customer, product, store, or time period.

Dimension

A dimension table describes the context of a fact. The Customer, Product, Store, and Time tables provide details for analyzing SALES. For example, the Customer dimension identifies who made a purchase, and the Time dimension identifies when the sale occurred.

Use the Dimension role for tables that answer questions such as "Who made the purchase?", "Which product sold?", or "When did the sale occur?"

Outrigger

An outrigger table adds descriptive detail to a dimension. In this example, the District and Region tables provide additional geographic details for the Store dimension. This keeps those details in related tables instead of repeating them for every store record.

Use the Outrigger role for a table that stores descriptive details related to a dimension.

The retail sales model connects SALES directly to Customer, Product, Store, and Time. Keeping district and region details inside Store produces a pure star schema; moving those details into separate District and Region outriggers introduces a snowflaked extension.

The following sections describe the characteristics of these schema designs and how they affect the structure of a dimensional model.

Star Schema Design

A star schema places a fact table at the center and connects it directly to dimensions that describe its facts. In the retail sales example, SALES stores QUANTITY_SOLD and NET_SALES_AMOUNT for each sales line. Customer, Product, Store, and Time provide context for those measures. In a pure star schema, Store contains its district and region descriptions rather than referencing separate tables.

A star schema can help you:

  • Reduce the number of joins required for queries, which can improve query performance

  • Support growth as business requirements evolve and data volumes increase

  • Organize data around familiar business concepts

  • Reduce metadata complexity for developers and users

Snowflake Schema

A snowflake schema normalizes a star schema by separating dimension details into additional related tables. In the retail sales example, District and Region hold geographic details related to Store instead of repeating those details in every store record. This structure can reduce repeated dimension data, but queries that use the related details need more joins and can take longer.

Relationship Rules for Dimensional Tables

Dimensional modeling roles follow the parent-child relationship rules below, illustrated using the retail sales model.

  • A fact table cannot be the parent in a relationship.

    SALES must not be the parent of CUSTOMER, PRODUCT, STORE, or TIME.

  • A fact table must be the child in at least one relationship with a dimension table.

    CUSTOMER is the parent and SALES is the child; CUSTOMER_ID migrates into SALES as a foreign key.

  • A fact table cannot be the child of an outrigger table.

    If SALES is the child in a relationship with the Region outrigger, it violates this rule. It could make the model appear to organize sales events under geographic details.

  • An outrigger table must be the parent in at least one relationship with a dimension table.

    Region must be connected as a parent of Store so that its geographic details describe the Store dimension.

  • An outrigger table cannot be the parent of a fact table.

    Region must not be the parent of SALES. Connect it to Store instead.

  • The child of an outrigger table must be a dimension table.

    If Region is an outrigger, Store, not SALES, must be its child. Otherwise, the model suggest that the outrigger describes a sales event rather than a dimension.

Dimension Update Types

Dimension and outrigger tables can use an update type to describe how changes to dimension data are handled over time. Selecting an update type records the design intent; it does not implement a history-loading process.

  • Fixed identifies data that does not change.

  • Type 1 replaces the old value with the new value. The previous value is not retained.

  • Type 2 adds a dimension record for the new value, preserving the old and new values. A generalized key is required to reference all versions of the original record.

  • Type 3 adds fields for the new value and the time of the change. Only the original and current values are retained; intermediate values are not tracked.

For more information, refer to the Create a Dimensional Model topic.